import { defHttp } from "@/utils/http";

// ERP 药品ATC分类API
export const atcClassificationApi = {
	// 获得药品ATC分类分页
	atcClassificationList: async (params: any) => {
		return await defHttp.get({ url: `/whs/atc-classification/page`, params });
	},
	// 新增药品ATC分类
	atcClassificationCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/atc-classification/create`, data });
	},

	// 修改药品ATC分类
	atcClassificationUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/atc-classification/update`, data });
	},

	// 删除药品ATC分类
	atcClassificationDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/atc-classification/delete?id=` + id });
	}
};
